/**
 * 2018年11月27日上午11:37:59
 * @author 谢进财
 */
package com.baihang.project.ds.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baihang.framework.dao.Record;
import com.baihang.framework.kit.JsonKit;
import com.baihang.framework.service.BaseService;
import com.baihang.project.ds.dao.TuPianDao;

@Service
public class TuPianService extends BaseService {
	@Autowired
	private TuPianDao dao;
	
	public String getPic() {
		List<Record> record = dao.queryForRecordList("select D_HouseModel from room GROUP BY D_HouseModel");
		//String.format("{\"result\":%s}", JsonKit.listToJson(record, 1))
		return JsonKit.listToJson(record, 1);
	}
}
